const MongoAdapt = require('mongo-adapt');
const mongoConfig = require('../config').mongo;

const mongoAdapt = new MongoAdapt(mongoConfig, {
  work: [{
    db: 'workstation',
    name: 'users',
    indexes: [{
      key: { tel: 1 },
      unique: true,
      background: true
    }]
  }]
});

module.exports = mongoAdapt;
